import request from '~/utils/request';
export function SaveCompanyInfo(data) {
    //开发商保存
    return request({
        url: '/Company/SaveCompanyInfo',
        method: 'POST',
        data,
    });
}
export function GetCompanyList(data) {
    //开发商保存
    return request({
        url: '/Company/GetCompanyList',
        method: 'POST',
        data,
    });
}
export function GetCompanyInfo(data) {
    //获取开发商信息
    return request({
        url: '/Company/GetCompanyInfo?companyDataID=' + data,
        method: 'GET',
        data,
    });
}
export function saveStaffInfo(data) {
    //保存单条数据
    return request({
        url: '/Company/SaveStaffInfo',
        method: 'POST',
        data,
    });
}
export function getStaffInfo(data) {
    //获取单条数据
    return request({
        url: '/Company/GetStaffInfo?staffid=' + data,
        method: 'get',
        data,
    });
}
export function SetCompanyState(data) {
    //设置开发商的状态
    return request({
        url: '/Company/SetCompanyState',
        method: 'POST',
        data,
    });
}
export function GetDeptTree(data) {
    //设置开开发商部门
    return request({
        url: '/Company/GetDeptTree',
        method: 'GET',
        data,
    });
}
export function GetStaffListUser(data) {
    //员工列表
    return request({
        url: '/Company/GetStaffListUser',
        method: 'POST',
        data,
    });
}
export function SaveDeptInfo(data) {
    //保存部门
    return request({
        url: '/Company/SaveDeptInfo',
        method: 'POST',
        data,
    });
}
export function GetDeptInfo(data) {
    //查询部门
    return request({
        url: '/Company/GetDeptInfo?deptid=' + data,
        method: 'GET',
        data,
    });
}
export function GetDeptList(data) {
    //部门分页
    return request({
        url: '/Company/GetDeptList',
        method: 'POST',
        data,
    });
}
export function SetDeptState(data) {
    //设置部门状态
    return request({
        url: '/Company/SetDeptState',
        method: 'POST',
        data,
    });
}
export function getCompanyDeptList() {
    //获取开发商的部门
    return request({
        url: '/Company/GetDeptSelectList',
        method: 'GET',
    });
}
export function saveCompanyBuilding(data) {
    //添加基本楼盘信息
    return request({
        url: '/Company/SaveCompanyBuilding',
        method: 'POST',
        data,
    });
}
export function getBuilingShowPicList(data) {
    //获取基本楼盘图片
    return request({
        url: '/Company/GetBuilingShowPicList',
        method: 'POST',
        data,
    });
}
export function getBuilingLogoSelectList(data) {
    //获取基本楼盘图片
    return request({
        url: '/Company/GetBuilingLogoSelectList',
        method: 'POST',
        data,
    });
}
export function updateBuildLogoList(data) {
    //编辑楼盘图片
    return request({
        url: '/Company/UpdateBuildLogoList',
        method: 'POST',
        data,
    });
}
export function getCompanyBuildList(data) {
    //楼盘分页列表
    return request({
        url: '/Company/GetCompanyBuildList',
        method: 'POST',
        data,
    });
}
export function setCompanyBuildState(data) {
    //设置楼盘状态
    return request({
        url: '/Company/SetCompanyBuildState',
        method: 'POST',
        data,
    });
}
export function getBuildingInfo(id) {
    //获取单个楼盘列表
    return request({
        url: '/Company/GetBuildingInfo?id=' + id,
        method: 'GET',
    });
}
export function getCompanyBuildingList() {
    //获取开发商楼盘列表
    return request({
        url: '/Company/GetCompanyBuildingList',
        method: 'GET',
    });
}
export function saveParkingData(data) {
    //保存车位信息
    return request({
        url: '/Company/SaveParkingData',
        method: 'POST',
        data,
    });
}
export function saveParkingDataList(data) {
    //保存车位信息
    return request({
        url: '/Company/SaveParkingDataList',
        method: 'POST',
        data,
    });
}
export function getParkingDataList(data) {
    //查询车位信息
    return request({
        url: '/Company/GetParkingDataList',
        method: 'POST',
        data,
    });
}

export function getParkingArea(projectId) {
    //查询车位区域信息
    return request({
        url: '/Company/GetParkingAreaApi?projectId=' + projectId,
        method: 'GET',
    });
}
export function getParkingDataPagingList(data) {
    //车位列表信息
    return request({
        url: '/Company/GetParkingDataPagingList',
        method: 'POST',
        data,
    });
}
export function setParkingDataState(data) {
    //设置车位状态
    return request({
        url: '/Company/SetParkingDataState',
        method: 'POST',
        data,
    });
}
export function saveParkingArea(data) {
    //设置车位区域信息
    return request({
        url: '/Company/SaveParkingArea',
        method: 'POST',
        data,
    });
}

export function setParkingOrderState(data) {
    //设置车位订单信息
    return request({
        url: '/Company/SetParkingOrderState',
        method: 'POST',
        data,
    });
}
export function getParkingFavoriteList(data) {
    //车位关注收藏夹列表信息
    return request({
        url: '/Company/GetParkingFavoriteList',
        method: 'POST',
        data,
    });
}
export function setParkingFavoriteState(data) {
    //设置车位关注收藏夹订单信息
    return request({
        url: '/Company/SetParkingFavoriteState',
        method: 'POST',
        data,
    });
}
export function getParkingViewList(data) {
    //车位关注收藏夹列表信息
    return request({
        url: '/Company/GetParkingViewList',
        method: 'POST',
        data,
    });
}
//////--------------------------------API-----------------------------------------------------------------
export function getCompanyBuildListApi() {
    //没有登陆时  获取楼盘数据
    return request({
        url: '/Company/GetCompanyBuildListApi',
        method: 'GET',
    });
}
export function getBuildListAll() {
    //获取楼盘所有数据
    return request({
        url: '/Company/GetBuildListAll',
        method: 'GET',
    });
}
export function getBuildListByCityId(cityId) {
    //根据区域获取楼盘所有数据
    return request({
        url: '/Company/GetBuildListByCityId?cityId=' + cityId,
        method: 'GET',
    });
}

export function getParkingFavoriteListByCompany(data) {
    //意向客户列表
    return request({
        url: '/Company/GetParkingFavoriteListByCompany',
        method: 'POST',
        data,
    });
}

// 根据城市ID获取所有楼盘
export function getCompanyBuildingListByCity(data) {
    return request({
        url: '/Company/GetCompanyBuildingListByCity',
        method: 'POST',
        data,
    });
}
// 开发商申请入驻
export function saveCompanyApply(data) {
    return request({
        url: '/Company/SaveCompanyApply',
        method: 'POST',
        data,
    });
}
//统计楼盘的车位的浏览量，收藏量，销售量，销售额
export function getBuilingStatisticsByCompanyDataID() {
    return request({
        url: '/Company/GetBuilingStatisticsByCompanyDataID',
        method: 'GET',
    });
}

// 统计业主的浏览量，收藏量，销售量，销售额
export function getOwnerStatistics(data) {
    return request({
        url: '/Company/GetOwnerStatistics',
        method: 'POST',
        data,
    });
}
//我的开发商
export function getCompanyListForAgent(data) {
    return request({
        url: '/Company/GetCompanyListForAgent',
        method: 'POST',
        data,
    });
}
//我的楼盘
export function getBuildingListForAgent(data) {
    return request({
        url: '/Company/GetBuildingListForAgent',
        method: 'POST',
        data,
    });
}
//获取活动列表
export function getCompanyApplyList(data) {
    return request({
        url: '/Company/GetCompanyApplyList',
        method: 'post',
        data,
    });
}
//获取活动列表
export function getBuilingStatistics() {
    return request({
        url: '/Company/GetBuilingStatistics',
        method: 'Get',
    });
}
//代理审核  开发商
export function setCompanyAgentVerify(data) {
    return request({
        url: '/Company/SetCompanyAgentVerify',
        method: 'post',
        data,
    });
}
//代理审核楼盘
export function setCompanyBuildVerify(data) {
    return request({
        url: '/Company/SetCompanyBuildVerify',
        method: 'post',
        data,
    });
}
//获取协议
export function getCompanyBuildFileByBuildingID(data) {
    return request({
        url: '/Company/GetCompanyBuildFileByBuildingID',
        method: 'post',
        data,
    });
}
//获取楼盘图片
export function getShowImgByBuildingId(data) {
    return request({
        url: '/Company/GetShowImgByBuildingId',
        method: 'post',
        data,
    });
}
